﻿@model CSF.Products.Data.ProductType

@{
}
@using (Html.BeginForm())
{  
    @Html.Hidden("ApplicationId", Model == null ? (int)ViewBag.AppId : Model.ApplicationId)
    @Html.HiddenFor(model => model.NameTextId)
    <div id="container">
        <div id="formStyle">
            <fieldset>
                <legend></legend>
                @Html.ValidationSummary(true)
                <p>
                    <label>
                        Code</label>
                    @Html.TextBoxFor(model => model.Code)
                    @Html.ValidationMessageFor(model => model.Code)
                </p>
                <p>
                    <label>
                        Name1</label>
                    @Html.EditorFor(model => model.Name1, "MultiLangTextInput")
                    @Html.ValidationMessageFor(model => model.Name1)
                </p>
                <p>
                    <label>
                        Part Type</label>
                    @Html.EditorFor(model => model.PartType, "ProductPartTypeSelection")
                    @Html.ValidationMessageFor(model => model.PartType)
                </p>
                <p>
                    <label>
                        Minimum Freight</label>
                    @Html.CheckBoxFor(model => model.IsMinFreight) Charge Minimum Freight
                    @Html.ValidationMessageFor(model => model.IsMinFreight) <br />
                    $@Html.TextBoxFor(model => model.MinFreight)
                    @Html.ValidationMessageFor(model => model.MinFreight)
                </p>
                <p>
                    <label>
                        Sequence</label>
                    @Html.TextBoxFor(model => model.Sequence)
                    @Html.ValidationMessageFor(model => model.Sequence)
                </p>
                <p>
                    @Html.ActionLink("Back to List", "Index")
                </p>
            </fieldset>
            <p class="submit">
                <button type="submit">
                    @ViewBag.DetailMode</button></p>
        </div>
    </div>
}
